
		package com.lemote.dao.order;

import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Component;

import com.lemote.entity.FlowTask;
import com.lemote.orm.hibernate.HibernateDao;
		/**
 *
 * @author wuhui
 * @time 2011-7-19 下午08:53:18
 * @Version:0.0.1
 * @since smt
 */
@Component
public class FlowTaskDao extends HibernateDao<FlowTask, Long> {
	
	public FlowTask getTaskByTaskName(String taskName) {

		return (FlowTask) getSession().createCriteria(FlowTask.class).add(Restrictions.eq("taskEname", taskName)).uniqueResult();
	}
}
